package com.design.bridge.file;

// 网络存储介质实现类
class NetworkStorage extends StorageMedium {
    public NetworkStorage(FileSystem fileSystem) {
        super(fileSystem);
    }

    @Override
    public void storeFile(String fileName, String content) {
        System.out.println("Storing file on network storage: " + fileName);
        fileSystem.writeFile(fileName, content);
    }

    @Override
    public String retrieveFile(String fileName) {
        System.out.println("Retrieving file from network storage: " + fileName);
        return fileSystem.readFile(fileName);
    }
}
